package com.appspot.dco.client;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.inject.Inject;

public class Frame {

	private HasWidgets container;
	private Presenter presenter;

	@Inject
	public Frame(final Presenter presenter) {
		this.presenter = presenter;
	}

	private void showMain() {
		this.container.clear();
		this.container.add(this.presenter.getView());
	}

	public void go(final HasWidgets container) {
		this.container = container;
		showMain();
	}

}
